<?php defined('_JEXEC') or die('Restricted access'); ?>
<div class="fileinfo">
    <div class="maininfo">
        <div class="content">
            <h1><?php echo $this->file->name; ?></h1>
            <table>
                <tr>
                    <td class="label"><?php echo JText::_('FILE_SIZE'); ?></td>
                    <td>test</td>
                </tr>
                <tr>
                    <td class="label"><?php echo JText::_('MIME_TYPE'); ?></td>
                    <td>test 2</td>
                </tr>
            </table>
        </div>
        <div class="action">
            <a href="index.php?option=com_docario&controller=file&task=download&fid=<?php echo $this->file->id; ?>" target="blank" title="<?php echo JText::_('DOWNLOAD'); ?>">
                <img src="<?php echo ASSETS_IMAGES . DS . 'download-48.png'; ?>" 
                     alt="<?php echo JText::_('DOWNLOAD'); ?>"/><br />
                <?php echo JText::_('DOWNLOAD'); ?>
            </a>
        </div>
    </div>
    <div class="clear"></div>
    <div class="file_revisions">
        <h2><?php echo JText::_('OLD_VERSIONS'); ?></h2>
        <table width="100%">
            <?php foreach ($this->file_revisions as $file_revision) { ?>
                <tr>
                    <td width="40">Rev <?php echo $file_revision->id; ?></td>
                    <td><?php echo $file_revision->revision_date; ?></td>
                    <td width="20"><?php echo $file_revision->default_rev; ?></td>
                    <td width="80">
                        <a href="">
                        <?php echo JText::_('DOWNLOAD'); ?>
                        </a>
                    </td>
                </tr>
            <?php } ?>
        </table>
    </div>
</div>
